home *** CD-ROM | disk | FTP | other *** search
- /*
- * OCTO-BANK Subroutine to run the Time/K Bank, written by Paul Baker
- */
-
- :tbank
- Do
- Cls
- Convert 'tbank'
- DoChoice
- SelectChoice
- /* Parameters are:
- * 1) TIME or K
- * 2) User time Left (macro)
- * 3) User downloads left (macro)
- * 4) % charge for deposit
- * 5) % charge for withdrawl
- * 6) Max time to be allowed to store
- * 7) Max K to be allowed to save
- * 8) Baud Rate
- */
-
- Case 'T'
- CreateDorinfo 'c:\octopus\system\'
- Execute 'c:\octopus\system\octobank.ttp TIME `Ut`U5 10 0 60 1024 `b'
- SelectErrorLevel
- Case 0
- Send 'Nothing Withdrawn or Deposited\r\n'
- GetKey
- Default
- AddTime ErrorLevel
- Endselect
-
- Case 'K' CreateDorinfo 'c:\octopus\system\'
- CreateDorinfo 'c:\octopus\system\'
- Execute 'c:\octopus\system\octobank.ttp K `Ut`U5 10 0 60 1024 `b'
- SelectErrorLevel
- Case 0
- Send 'Nothing Withdrawn or Deposited\r\n'
- GetKey
- Default
- adddownload errorLevel
- Endselect
- EndSelect
- EnddoChoice 'Q'
- Enddo 'Q'
- Clrchoice
- Return
-